import request from '../request'
export function getMovieList (params) {
  return request({
    url: '/movie/movieList',
    method: 'get',
    params,
    hideLoading: true
  })
}

export function movieAdd (data) {
  return request({
    url: '/movie/movieAdd',
    method: 'post',
    data
  })
}

export function movieUpdate (data) {
  return request({
    url: '/movie/movieUpdate',
    method: 'post',
    data
  })
}

export function getMovieInfo (params) {
  return request({
    url: '/movie/movieInfo',
    method: 'get',
    params
  })
}

export function movieRemove (data) {
  return request({
    url: '/movie/movieRemove',
    method: 'post',
    data
  })
}

export function getMovieAreaList (params) {
  return request({
    url: '/movie/movieAreaList',
    method: 'get',
    params,
    hideLoading: true
  })
}

export function movieAreaAdd (data) {
  return request({
    url: '/movie/movieAreaAdd',
    method: 'post',
    data
  })
}

export function movieAreaRemove (data) {
  return request({
    url: '/movie/movieAreaRemove',
    method: 'post',
    data
  })
}

export function getMovieTypeList (params) {
  return request({
    url: '/movie/movieTypeList',
    method: 'get',
    params,
    hideLoading: true
  })
}

export function movieTypeAdd (data) {
  return request({
    url: '/movie/movieTypeAdd',
    method: 'post',
    data
  })
}

export function movieTypeRemove (data) {
  return request({
    url: '/movie/movieTypeRemove',
    method: 'post',
    data
  })
}

export function fileMerge (data) {
  return request({
    url: '/merge',
    method: 'post',
    data,
    hideLoading: true
  })
}

export function checkUploadFile (data) {
  return request({
    url: '/checkUploadFile',
    method: 'post',
    data,
    hideLoading: true
  })
}

export function fileUpload (data) {
  return request({
    url: 'upload',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    method: 'post',
    data,
    hideLoading: true
  })
}
